#include "Inc/rlc.h"

void main(void){

	System_init();
	
	EnableInterrupt;
	
	LCD1602_DispString(0,0,"LCD1602 Test!");
	LCD1602_DispString(0,1,"RLC Meter");
	
	A_4052=0;B_4052=0;
	
	while(1){
		
		SendChar(((uchar *)&res)[0]);
		SendChar(((uchar *)&res)[1]);
		SendChar(((uchar *)&res)[2]);
		SendChar(((uchar *)&res)[3]);

		Delay_ms(500);
				
	}
}

void INT0_ISR(void) interrupt 0{

	Delay_us(100);
	if(BUTTON_INT0 == 0)
		IAP_CONTR = 0x60;

}
